{notempty name="searchFields"}
<div class="row">
    <div class="col-md-9">
        <form action="{$pageSize.url}" class="form" method="post">
            <div class="form-inline">
                {foreach $searchFields as $search}
                    {/*{php}include(APP_PATH . "admin/view/components/" . $search['type'] . ".html");{/php}*/}
                    {switch name="search.type" }
                        {case value="text"}
                            {include file="components:text" /}
                        {/case}
                        {case value="select"}
                            {include file="components:select" /}
                        {/case}
                        {case value="date"}
                            {include file="components:date" /}
                        {/case}
                            {default /}
                            {include file="components:text" /}
                    {/switch}
                    &nbsp;&nbsp;&nbsp;
                {/foreach}

                <button type="submit" class="btn btn-success" title="筛选">
                    <i class="fa fa-search"></i> 筛选
                </button>
                <!--<a href="{:url('admin/'.strtolower($model).'/index')}?reset=1" class="btn btn-danger"><i class="fa fa-trash"></i> 清空</a>-->
                <a href="{$currentUrl}?reset=1" class="btn btn-danger"><i class="fa fa-trash"></i> 清空</a>
            </div>
        </form>
    </div>
</div>
{else /}
<h3 class="box-title">{$title}</h3>
{/notempty}